# 元组里的元素不能被修改的

# 获取下标值
tuple1 = (1, 2, 3, True, 'hello')
print(tuple1[1])

# 切片 截取
tuple2 = tuple1[::-1]
print(tuple2)

tuple3 = (1, 2, 3, 4)
# len
print(len(tuple1))
print(max(tuple3), min(tuple3))

# 元组相加
print(tuple1 + tuple2)

# 元组乘
print(tuple1 *20)

# in is
print(1 in tuple1)
print(1 is not tuple1)



# 删除变量
del tuple1
